package com.cmzj21.springcloud.service.impl;

import com.cmzj21.springcloud.entities.CommonResult;
import com.cmzj21.springcloud.entities.Payment;
import com.cmzj21.springcloud.service.PaymentService;
import org.springframework.stereotype.Component;

/**
 * @author cmzj21
 */
@Component
public class PaymentFallbackService implements PaymentService {
    @Override
    public CommonResult<Payment> paymentSql(Long id) {
        return new CommonResult<>(444,"feign服务降级返回,没有该流水信息",new Payment(id, "errorSerial......"));
    }
}
